package com.uduew.sjd.config

public class CameraDefine {
    enum class CameraType(val value: Int) {
        Unknown(0),
        Front(1),
        Back(2);

        companion object {
            fun fromInt(value: Int): CameraType {
                for (type in CameraType.entries) {
                    if (type.value == value) {
                        return type
                    }
                }
                return CameraType.Unknown
            }
        }
    }

    interface Callback {
        fun onSuccess()
        fun onError(errCode: Int, errMsg: String?)
    }


}